package bavaria.hightech.banking.unusedClasses;

public class LinkedList_ALT<T> {
	private LinkedList_ALT<LinkedElement<T>> list = new LinkedList_ALT<LinkedElement<T>>();

	public void add(T subElement) {
		list.add(new LinkedElement<T>(subElement));
	}

	public void clear() {
		list.clear();
	}

	/*
	 * public Iterator<LinkedElement<T>> getIterator() { return list.iterator();
	 * }
	 */

	public static class LinkedElement<T> {

		private final T myElem;

		private LinkedElement(T subElement) {
			myElem = subElement;
		}

		@Override
		public String toString() {
			return myElem.toString();
		}
	}
}
